<%@ Page Title="Descripcion de Incidencias" Language="C#" MasterPageFile="~/Principal.Master" AutoEventWireup="true" CodeBehind="DescripcionTicket.aspx.cs" Inherits="HelpDesk.DescripcionTicket" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        #Datos
        {
            text-align: center;
        }
        #tabla
        {
            width: 353px;
        }
        .style1
        {
            width: 59%;
        }
        .style2
        {
        }
        .style3
        {
            text-align: right;
        }
        .style4
        {
            width: 148px;
        }
        .style5
        {
            width: 148px;
            height: 22px;
        }
        .style6
        {
            height: 22px;
        }
        </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
        <div class="post">
			<h1 class="title"><a href="#">Descripcion Ticket</a></h1>
			<br />
            <table style="width: 100%;">
                <tr>
                    <td class="style4">Numero de Ticket: </td>
                    <td>
                        <asp:Label ID="lblTIcket" runat="server" Text="Numero de Ticket"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="style4">Ticket Solicitado Por:&nbsp; </td>
                    <td>
                        <asp:Label ID="lblSolicitado" runat="server" Text="Solicitado"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="style4">Ticket Creado Por: </td>
                    <td>
                        <asp:Label ID="lblCreado" runat="server" Text="Label"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="style4">Fecha de Creacion: </td>
                    <td>
                        <asp:Label ID="lblFecha" runat="server" Text="Label"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="style4">Estatus: </td>
                    <td>
                        <asp:Label ID="lblEstatus" runat="server" Text="Label"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="style4">&nbsp;</td>
                    <td></td>
                </tr>
                <tr>
                    <td class="style4">Infraestructura: </td>
                    <td>
                        <asp:Label ID="lblInfraestructura" runat="server" Text="Label"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="style4">Problema: </td>
                    <td>
                        <asp:Label ID="lblProblema" runat="server" Text="Label"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="style4">Area de Origen: </td>
                    <td>
                        <asp:Label ID="lblArea" runat="server" Text="Label"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="style4">&nbsp;</td>
                    <td></td>
                </tr>
                <tr>
                    <td class="style4">Descripcion: </td>
                    <td>
                        <asp:TextBox ID="txtDescripcion" runat="server" Height="89px" 
                            TextMode="MultiLine" Width="391px" ReadOnly="True"></asp:TextBox>
                    </td>
                </tr>       
                <tr>
                    <td class="style5"></td>
                    <td class="style6"></td>
                </tr>

                <tr>
                    <td class="style4">&nbsp;</td>
                    <td>
                        <asp:Button ID="btn_asignacion" runat="server" Text="Button" 
                            onclick="btn_asignacion_Click" />
                        <asp:Label ID="lblMensaje" runat="server" Text="Label"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="style4">&nbsp;</td>
                    <td class="style4">&nbsp;</td>
                </tr>
                <tr>
                    <td class="style4">Comentarios:</td>
                    <td>&nbsp;</td>
                </tr>
                <tr>
                    <td class="style4" colspan="2">
                        <asp:GridView ID="GridView1" runat="server" BackColor="White" 
                            BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3" 
                            DataSourceID="OracleDetalleTicket" AllowPaging="True" AllowSorting="True">
                            <RowStyle ForeColor="#000066" />
                            <FooterStyle BackColor="White" ForeColor="#000066" />
                            <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
                            <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                            <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
                        </asp:GridView>
                        <asp:SqlDataSource ID="OracleDetalleTicket" runat="server" 
                            ConnectionString="<%$ ConnectionStrings:ConexionDataAdapter %>" 
                            ProviderName="<%$ ConnectionStrings:ConexionDataAdapter.ProviderName %>" 
                            SelectCommand="SELECT USUARIO_COMENTA USUARIO, FECHA_COMENTARIO FECHA, COMENTARIO FROM COMENTARIOS WHERE (ID_TICKET = ?) ORDER BY FECHA_COMENTARIO">
                            <SelectParameters>
                                <asp:ControlParameter ControlID="lblTIcket" Name="ID_TICKET" 
                                    PropertyName="Text" Type="Decimal" />
                            </SelectParameters>
                        </asp:SqlDataSource>
                    </td>
                </tr>
            </table>
			
		    <table class="style1" align="center">
		        <tr><td></td><td></td></tr>
                <tr>
                    <td class="style2" colspan="2">
                        <asp:Label ID="Label1" runat="server" Text="Ingrese comentario:"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <asp:TextBox ID="txtComentarios" runat="server" Height="45px" Width="438px" 
                            TextMode="MultiLine"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Button ID="btnComentario" runat="server" onclick="btnComentario_Click" 
                            Text="Aceptar" style="height: 26px"/>
                    </td>
                    <td class="style3">&nbsp;</td>
                </tr>
            </table>
            <br />
		</div>
		</asp:Content>

